mini-os: Fix memory leaks in blkfront, netfront, pcifront, etc.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Dec 2009 09:51:07 +0000 (09:51 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Dec 2009 09:51:07 +0000 (09:51 +0000)
commit453414b284599a93944cc893b11f85028c1d7f76
tree7c104656495f75b805518c7e0fbac4aabfa9c57f
parent82b68fcd0ab980313dc739d2974d2194f83f07f1
mini-os: Fix memory leaks in blkfront, netfront, pcifront, etc.

The return value of Xenbus routines xenbus_transaction_start(),
xenbus_printf(), xenbus_transaction_end(), etc.  is a pointer of error
message.  This pointer should be passed to free() to release the
allocated memory when it is no longer needed.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
extras/mini-os/blkfront.c
extras/mini-os/console/xencons_ring.c
extras/mini-os/fbfront.c
extras/mini-os/fs-front.c
extras/mini-os/netfront.c
extras/mini-os/pcifront.c
extras/mini-os/xenbus/xenbus.c